﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using ESRI.ArcGIS.Carto;

namespace PlanningGIS.Draw
{
    public partial class FrmEditTextElement : DevComponents.DotNetBar.Office2007Form 
    {
        private ITextElement pTextElement;

        public ITextElement TextElement
        {
            get { return pTextElement; }
            set { pTextElement = value; }
        }

        public FrmEditTextElement()
        {
            InitializeComponent();
        }

        private void FrmEditTextElement_Load(object sender, EventArgs e)
        {
            richTextBox1.Text = pTextElement.Text;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            pTextElement.Text = richTextBox1.Text;
            this.Close();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }


    }
}
